package com.nurt.utils;

public enum ReturnCode {
    SUCCESS(200, "成功"),
    BAD_REQUEST(400, "错误的请求"),
    UNAUTHORIZED(401, "未授权"),
    FORBIDDEN(403, "禁止"),
    NOT_FOUND(404, "未找到"),
    INTERNAL_SERVER_ERROR(500, "内部服务器错误");

    private final int code;
    private final String description;

    ReturnCode(int code, String description) {
        this.code = code;
        this.description = description;
    }

    public int getCode() {
        return code;
    }

    public String getDescription() {
        return description;
    }
}
